package com.newsee.remote.common.database.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author liangzhichen
 * @since 2019-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SH_MaterialClass")
public class ShMaterialclass extends Model<ShMaterialclass> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("Code")
    private String Code;

    @TableField("ClassName")
    private String ClassName;

    @TableField("ParentID")
    private Long ParentID;

    @TableField("OrderID")
    private Integer OrderID;

    @TableField("LayerID")
    private Integer LayerID;

    @TableField("AncestorID")
    private String AncestorID;

    @TableField("AncestorName")
    private String AncestorName;

    @TableField("CreateUserID")
    private Long CreateUserID;

    @TableField("CreateDate")
    private LocalDateTime CreateDate;

    @TableField("UpdateUserID")
    private Long UpdateUserID;

    @TableField("UpdateDate")
    private LocalDateTime UpdateDate;

    @TableField("Remark")
    private String Remark;

    @TableField("BusinessLineType")
    private Integer BusinessLineType;

    @TableField("BudgetSubjects")
    private String BudgetSubjects;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
